package LeetCode;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}15:32
 */
public class E1 {//找出重复的数
    public static void main(String[] args) {
        int[] nums  = {2, 3, 1, 0, 2, 5, 3};
        int temp = 0;
        int indexs = 0;
        for (int i = 0; i < nums.length;i++){
            int index = nums[i];
            for (int j = i+1;j<nums.length;j++){
                if (index == nums[j]){
                    temp++;
                    indexs = i;
                }
            }
        }
        System.out.println(nums[indexs]);
    }
}
